package com.zhuss.lock;

/**
 * WatchDogTask
 *
 * @Author zhushanshuo
 * @Date 2024-08-13 15:18:08
 */
public class WatchDogTask implements Timer {

    /**
     * timer接口
     */
    private Timer timer;

    /**
     * 构造方法
     * @param timer
     */
    public WatchDogTask(Timer timer) {
        this.timer = timer;
    }

    /**
     * 实现接口的方法
     */
    @Override
    public void start() {
        this.timer.start();
    }
}
